package com.zbkj.service.service.project.impl;

import com.zbkj.common.model.project.PeAiWriteHistory;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zbkj.service.dao.project.PeAiWriteHistoryMapper;
import com.zbkj.service.service.project.IPeAiWriteHistoryService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 扩写记录表 服务实现类
 * </p>
 *
 * @author 
 * @since 2025-08-03
 */
@Service
public class PeAiWriteHistoryServiceImpl extends ServiceImpl<PeAiWriteHistoryMapper, PeAiWriteHistory> implements IPeAiWriteHistoryService {

    @Override
    public List<PeAiWriteHistory> queryByTime(String startDate, String endDate) {
        return this.lambdaQuery().ge(PeAiWriteHistory::getCreateTime, startDate)
                .le(PeAiWriteHistory::getCreateTime, endDate).list();
    }
}
